<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0,viewport-fit=cover" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>Hello APP</title>
    <link rel="stylesheet" type="text/css" href="../../css/vant.css">
    <link rel="stylesheet" type="text/css" href="../../css/base.css" />
    <script type="text/javascript" src="../../script/jquery.js"></script>
    <script type="text/javascript" src="../../script/vue.min.js"></script>
    <script src="../../script/vant.min.js"></script>
    <script type="text/javascript" src="../../script/fastclick.js"></script>
    <script type="text/javascript" src="../../script/base.js"></script>
    <style type="text/css">
        html,
        body,
        #app,
        .init-full {
            height: auto;
        }

        body {
            background: #fff;
        }

        .button {
            padding: 10px 15px;
        }
    </style>
</head>

<body>
    <div id="app" v-cloak >
        <div class="init-full">
            <div class="button">
                <van-row gutter="20">
                    <van-col span="12">
                            <van-button type="info" class="login-out" block @click="loginOut">销售出库</van-button>
                    </van-col>
                    <van-col span="12">
                            <van-button type="primary" class="login-out" block @click="loginOut">销售出库</van-button>
                    </van-col>
                </van-row>
            </div>
        </div>
    </div>
</body>
<script type="text/javascript">
    var vm;
    apiready = function () {
        //$('.init-full').show();
        vm = new Vue({
            el: '#app',
            data: {
                showLoading: false,
                tabbarActive: 0
            },
            created: function () {
                var that = this;
                api.openFrame({
                    name: 'index',
                    url: './index.html',
                    rect: {
                        x: 0,
                        y: 0,
                        w: api.winWidth,
                        h: api.winHeight - 61
                    },
                    pageParam: {
                        name: 'test'
                    }
                });
            },
            methods: {
                changeTabbar(index) {
                    var url = '';
                    if (index == 0) {
                        url = 'index'
                    } else if (index == 1) {
                        url = 'vin'
                    } else if (index == 3) {
                        url = 'column'
                    } else if (index == 4) {
                        url = 'userMenu'
                    }

                    api.openFrame({
                        name: url,
                        url: './' + url + '.html',
                        rect: {
                            x: 0,
                            y: 0,
                            w: api.winWidth,
                            h: api.winHeight - 61
                        },
                        pageParam: {
                            name: 'test'
                        }
                    });
                }
            }
        })
    };
</script>

</html>